﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DNNspot.LiveChat
{   
    internal static class LicenseSettings
    {
        internal static Guid LicenseKeySet = new Guid("521c4ffc-e32a-4d62-884d-4cc0ea7ba695"); // don't change this!!
        internal const int TrialLicenseMaxMessagesPerSession = 8;
    }

    public static class PortalSettingNames
    {
        public static string ChatOfflineMessage = "ChatOfflineMessage";
        public static string ChatOnlineMessage = "ChatOnlineMessage";
        public static string QueueTimeout = "QueueTimeout";
        public static string QueueTimeoutMessage = "QueueTimeoutMessage";
        public static string WelcomeMessage = "WelcomeMessage";
    }

    public class ControlKeys
    {
        public const string EditAgent = "Agent";
        public const string EditCategory = "Category";
        public const string EditSession = "Session";
    }

    public class Cookies
    {
        public const string ClientId = "DNNspotLiveChatClientId";
    }

    public class HandlerActions
    {
        public const string CloseSession = "CloseSession";
        public const string CreateSession = "CreateSession";
        public const string EmailSession = "EmailSession";
        public const string GetOpenSessions = "GetOpenSessions";
        public const string GetSessionState = "GetSessionState";
        public const string JoinSession = "JoinSession";
        public const string LoginAgent = "LoginAgent";
        public const string LogoutAgent = "LogoutAgent";
        public const string PostMessage = "PostMessage";
        public const string ReassignSession = "ReassignSession";
        public const string ReloadQueue = "ReloadQueue";
        public const string UpdateSession = "UpdateSession";
    }

    public class Params
    {
        public const string Action = "Action";

        public const string AgentId = "AgentId";
        public const string CategoryId = "CategoryId";
        public const string ClientId = "ClientId";
        public const string MessageId = "MessageId";
        public const string PortalId = "PortalId";
        public const string SessionId = "SessionId";
        public const string SessionIds = "SessionIds";
        public const string UserId = "UserId";

        public const string FirstName = "FirstName";
        public const string LastName = "LastName";
        public const string Email = "Email";
        public const string Ip = "Ip";
        public const string MessageBody = "MessageBody";
        public const string Notes = "Notes";
        public const string Question = "Question";
        public const string UrlReferrer = "UrlReferrer";

        public const string PageNumber = "page";
        public const string PageSize = "rp";
        public const string Query = "query";
        public const string QueryColumns = "qtype";
        public const string SortColumn = "sortname";
        public const string SortDirection = "sortorder";

        public const string MaxMessagesPerSession = "MaxMessagesPerSession";
    }

    public class PostBackEvents
    {
        public const string EditAgent = "EditAgent";
        public const string EditCategory = "EditCategory";
        public const string EditSession = "EditSession";
    }

    public class ModuleSettings
    {
        //public const string SerialNumber = "DNNspot_LiveChat_SerialNumber";
        public const string NoJQuery = "DNNspot_LiveChat_NoJQuery";
        public const string FolderName = "DNNspot-LiveSupport";
    }
}
